﻿//using AutoMapper;
//using MediatR;
//using SmartProduction.Domain.yjh;
//using SmartProduction.ErrorCode;
//using SmartProduction.Infarstructrue.Interface;
//using SmartProduction.Read.API.Application.Commands.Allcate;

//namespace SmartProduction.Read.API.Application.CommandHandlers.Allcate
//{
//    /// <summary>
//    /// 调拨单查询命令处理
//    /// </summary>
//    public class AllcateQueryCommandHandler:IRequestHandler<AllcateQueryCommand,APIResult<APIPaing<Domain.yjh.Allocate>>>
//    {
//        /// <summary>
//        /// 调拨单仓储
//        /// </summary>
//        private readonly IBaseRepository<Allocate> allcateRep;
//        /// <summary>
//        /// 映射
//        /// </summary>
//        private readonly IMapper mapper;
//        /// <summary>
//        /// 构造方法
//        /// </summary>
//        /// <param name="allcateRep">调拨单仓储</param>
//        /// <param name="mapper">映射</param>
//        public AllcateQueryCommandHandler(IBaseRepository<Domain.yjh.Allocate> allcateRep,IMapper mapper)
//        {
//            this.allcateRep = allcateRep;
//            this.mapper = mapper;
//        }
//        /// <summary>
//        /// 处理
//        /// </summary>
//        /// <param name="request">实体</param>
//        /// <param name="cancellationToken">取消</param>
//        /// <returns>返回任务</returns>
//        /// <exception cref="NotImplementedException"></exception>
//        public Task<APIResult<APIPaing<Allocate>>> Handle(AllcateQueryCommand request, CancellationToken cancellationToken)
//        {
//            APIResult<APIPaing<object>> result = new APIResult<APIPaing<object>>();

//            var list = allcateRep.GetAll().Result.Where(x => x.IsDeleted == false);

            
//        }
//    }
//}
